/**
 * 
 */
package com.zw.cc.redis;

import com.zw.cc.exception.ShardJedisOperationException;

public interface ConnectionCallback<T, P> {

	/**
	 * 连接redis服务
	 * 
	 * @return T
	 */
	T doInConnection(P p) throws ShardJedisOperationException;
}
